package com.zpark.it.controller;

import com.zpark.it.param.PageParam;
import com.zpark.it.service.OrderService;
import com.zpark.it.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: OrderController
 * @Author Charles
 * @Package com.zpark.it.controller
 * @Date 2023/7/29 13:58
 */
@RestController
@RequestMapping("order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/list")
    public R list(@RequestBody PageParam pageParam){
        return orderService.list(pageParam);
    }
}
